
import axios from './axios';
import { AxiosResponse } from 'axios';

export default {
    createArticle(params: {} = {} ): Promise<AxiosResponse<any>> {
        return axios.post('/article/create', params);
    },
    getList(params: {} = {}): Promise<AxiosResponse<any>> {
        return axios.get('/article/list', { params });
    },
    getDetail(params: {} = {}): Promise<AxiosResponse<any>> {
        return axios.get('/article/detail', { params });
    },
};

